package at.jaki.ubb.crawling.api.filters;

import at.jaki.ubb.crawling.model.Target;

/**
 * Every target Filter must implement this interface. Target Filters are used to decide if a target can be poped from the Target Queue at a given moment.
 * @author Attila Jakabfi
 *
 */
public interface TargetFilter extends CEFilter<Target<?>>{

	/**
	 * This method will be called for every target that is about to get poped from the target queue. 
	 * @param t target to be evaluated.
	 * @return what should happen to the element
	 */
	FilterResult doFilter(Target<?> t);

}
